Skip to main content

Context API Technical Information

This section outlines the technical specifications, supported formats, and known limitations associated with using the Context API. Understanding these constraints is essential for ensuring optimal performance and compatibility across different use cases. It includes details on supported file types, input size limits, image processing behavior, and multilingual capabilities.

See Context API Actions for detailed information.

Known Limitation

The following table displays the known limitation of using the Context API.

PropertyValue
Supported image formatsJPEG, PNG
Supported text file formatsPDF

Technical Constraints

Listed below are the technical constraints based on the available actions.

image-description

PropertyValue
Multilingual SupportYes
Accepted Image FormatsJPEG, PNG
Max Input Image Size5 MB
Max Image Dimensions8000 × 8000 pixels (scaled down preserving aspect ratio if exceeded)
Recommended DimensionsLess than 1568 pixels on the longer side
Minimum Effective SizeAvoid images with any edge < 200 pixels (may degrade performance)

image-metadata-generation

PropertyValue
Multilingual SupportYes
Max Input Image Size5 MB
Supported Image FormatsJPEG, PNG
Max Total Pixels per Image8000 px × 8000 px
Image ScalingImages are scaled down (preserving aspect ratio) to fit within size limits
Recommended Image SizeLess than 1568 pixels on the larger side
Minimum Image Size WarningImages under 200 pixels on any edge may degrade performance

text metadata-generation

PropertyValue
Maximum input character800K

text-classification

PropertyValue
Maximum input character800K

text-summarization

PropertyValue
Maximum input character800K

image-classification

PropertyValue
Multilingual SupportYes
Max Input Image Size5 MB
Supported Image FormatsJPEG, PNG
Maximum Total Pixels per Image8000 × 8000
Image ScalingImages are scaled down preserving aspect ratio to meet size limits.
Recommended Max Pixels (Larger Side)Less than 1568 pixels
Minimum Edge SizeImages under 200 pixels on any edge may degrade performance.

image-embeddings

PropertyValue
Languages SupportedEnglish
Max Input Image Size25 MB
Supported Image FormatsPNG, JPEG
Maximum Total Pixels per Image2048 × 2048 × 3
Aspect Ratio (Width/Height)Minimum: 0.25, Maximum: 4
Output Vector Size1,024

text-embeddings

None

named-entity-recognition-image

PropertyValue
Multilingual SupportYes
Max Input Image Size5 MB
Supported Image FormatsJPEG, PNG
Maximum Total Pixels per Image8000 × 8000
Image ScalingImages are scaled down preserving aspect ratio to meet size limits.
Recommended Max Pixels (Larger Side)Less than 1568 pixels
Minimum Edge SizeImages under 200 pixels on any edge may degrade performance.

named-entity recognition text

PropertyValue
Maximum input character800K